Using The Hamiltonian In Economics: Example